/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model.entity;

import org.json.JSONObject;

/**
 *
 * @author rajin
 */
public class TweetLocation {
    public static String TWEET_ID ="tweet_id";
    public static String USER_ID ="user_id";
    public static String USER_NAME ="user_name";
    public static String SCREEN_NAME = "screen_name";
    public static String TWEET_TEXT = "tweet_text";
    public static String PROFILE_IMAGE_URL = "profile_image_url";
    public static String LATITUDE = "latitude";
    public static String LONGITUDE = "longitude";
    
    private long tweetId;
    private long userId;
    private String userName;
    private String screenName;
    private String tweetText;
    private String profileImageUrl;
    private double latitude;
    private  double longitude;
    
    
    public TweetLocation(long tweetId,long userId,String userName,String screenName,String tweetText,
                        String profileImageUrl,double latitude,double longitude)
    {
        this.tweetId = tweetId;
        this.userId = userId;
        this.userName = userName;
        this.screenName = screenName;
        this.tweetText = tweetText;
        this.profileImageUrl = profileImageUrl;
        this.latitude = latitude;
        this.longitude = longitude;
    }
    public JSONObject toJSON()
    {
        JSONObject obj =new JSONObject();
        obj.put(TweetLocation.TWEET_ID, tweetId);
        obj.put(TweetLocation.USER_ID, userId);
        obj.put(TweetLocation.USER_NAME, userName);
        obj.put(TweetLocation.SCREEN_NAME, screenName);
        obj.put(TweetLocation.TWEET_TEXT, tweetText);
        obj.put(TweetLocation.PROFILE_IMAGE_URL, profileImageUrl);
        obj.put(TweetLocation.LATITUDE, latitude);
        obj.put(TweetLocation.LONGITUDE, longitude);
        
        
        return obj;
    }
}

